CC = g++
CFLAGS = -Wall -g
OBJS = $(patsubst %.cpp,%.o,$(wildcard *.cpp))
TARGET = PktParserLite
CLIB = -lpthread

$(TARGET) : $(OBJS)
	$(CC) $(CFLAGS) $^ -o $@ $(CLIB)
%.o : %.cpp
	$(CC) $(CFLAGS) -c $< -o $@

.PHONY:clean
clean:
	-rm $(OBJS) $(TARGET)
